import GraphBack from '../../src'
const canvas = document.createElement('canvas')
canvas.style.position = 'fixed'
canvas.style.width = canvas.style.height = '100%'
canvas.style.top = canvas.style.left = '0'
document.body.appendChild(canvas)

// 场景
const scene = new GraphBack.Scene(canvas)

const points = [
  [400, 800],
  [600, 700],
  [500, 200],
  [700, 500],
  [200, 200],
  [100, 100],
  [100, 300]
]

const polyline = new GraphBack.Polyline({ color: 'red', lineWidth: 2, smooth: true, close: true, points })
const polyline1 = new GraphBack.Polyline({ color: 'green', lineWidth: 2, smooth: false, close: true, points })

scene.add(polyline)
scene.add(polyline1)

scene.render()
